Skip to content

fix: block unblock contact#201753

Merged
BenyFilho merged 2 commits into
wwebjs:mainfrom
BenyFilho:fix_block_unblock_contact
May 10, 2026
Merged

fix: block unblock contact#201753
BenyFilho merged 2 commits into
wwebjs:mainfrom
BenyFilho:fix_block_unblock_contact

Conversation

@BenyFilho
Copy link
Copy Markdown
Member

Fixing Block and UnBlock Contact

Description

Fixing Block and UnBlock Contact

Testing Summary

Test Details

client.on('ready', async () => {
    const contact = await client.getContactById(contactId);
    contact.block();
    contact.unblock();
});;

You can try the fix by running one of the following commands:

  • NPM
    npm install github:BenyFilho/whatsapp-web.js#fix_block_unblock_contact

  • YARN
    yarn add github:BenyFilho/whatsapp-web.js#fix_block_unblock_contact

Environment

  • Machine OS:

Windows 10

  • Phone OS:
    Android 11

  • Library Version:

1.34.7

  • WhatsApp Web Version:

2.3000.1039102240

  • Browser Type and Version:

Chrome 147.0.7727.138

  • Node Version:

18.20.2

Type of Change

  • Dependency change (package changes such as removals, upgrades, or additions)
  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Non-code change (documentation, README, etc.)

Checklist

  • My code follows the style guidelines of this project.
  • All new and existing tests pass (npm test).
  • Typings (e.g. index.d.ts) have been updated if necessary.
  • Usage examples (e.g. example.js) / documentation have been updated if applicable.

@github-actions github-actions Bot added the api changes API modifications label May 8, 2026
@BenyFilho BenyFilho changed the title Fix block unblock contact fix: block unblock contact May 8, 2026
@BenyFilho BenyFilho added the approved Confirmed by maintainers label May 9, 2026
@BenyFilho BenyFilho merged commit f7e4d3d into wwebjs:main May 10, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api changes API modifications approved Confirmed by maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants